package com.learn.actionplatfo.service;

import com.learn.actionplatfo.Mapper.GoodForUserMapper;
import com.learn.actionplatfo.bean.GoodForUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodForUserService {
    @Autowired
    GoodForUserMapper goodForUserMapper;

    public List<GoodForUser> getMainPageList(){
        return goodForUserMapper.getMainPageList();
    }

    public List<GoodForUser> getGFUbyState(int state){
        return goodForUserMapper.getGFUbyState(state);
    }

    public List<GoodForUser> getGFUbyName(String name){
        return goodForUserMapper.getGFUbyName(name);
    }

    public List<GoodForUser> getGFUby1stClass(String firstClassification){
        return goodForUserMapper.getGFUby1stClass(firstClassification);
    }

    public List<GoodForUser> getGFUby1stand2ndClass(String firstClassification,String secondClassification){
        return goodForUserMapper.getGFUby1stand2ndClass(firstClassification,secondClassification);
    }

    public List<GoodForUser> getGFUbyUpUptUser(int upPutUser){
        return goodForUserMapper.getGFUbyUpUptUser(upPutUser);
    }

    public List<GoodForUser> getGFUbyPriceBuyUser(int buyUser){
        return goodForUserMapper.getGFUbyPriceBuyUser(buyUser);
    }
    public List<GoodForUser> getAllGFU(){
        return goodForUserMapper.getAllGFU();
    }

    public GoodForUser getGFUById(int id){
        return goodForUserMapper.getGFUById(id);
    }

    public List<GoodForUser> getGFUByUpPutId(int id){
        return goodForUserMapper.getGFUByUpPutId(id);
    }

    List<GoodForUser> getGFUByBuyUserNo(int id){
        return goodForUserMapper.getGFUByBuyUserNo(id);
    }
}
